<?php

namespace Admin\Model;

use Think\Model;

/**
 * 农产品表
 */
Class CropsInfoModel extends Model {

    public function selectCrops() {
        $result = $this->find();
        $count = $this->count();
        $Page = new \Think\Page($count, 2);
        $show = $Page->show();
        $news = $this->limit($Page->firstRow . ',' . $Page->listRows)->select();
        return $news;
    }

    public function addCrops() {
        
    }

}

?>